<?php
declare(strict_types=1);

namespace WebApp\lib\exception;

use Exception;
use Throwable;

/**
 * Class ParamErrorException
 * @package txz\common\third_lib\model\exception
 */
class ProcessAfter extends Exception
{
    const KEY = "ClientOkException_bridge";

    public function __construct($message = "", $code = 0, Throwable $previous = null) {
        if (!is_string($message)) {
            $GLOBALS[ClientOkException::KEY] = $message;
            $msg = ClientOkException::KEY;
        } else {
            $msg = $message;
        }

        parent::__construct($msg, $code, $previous);
    }
}